import request from "@/utils/request"

export function queryAccountPage(data) {
  return request({
    url: "/ACustomerAccount/queryPageV2",
    method: "POST",
    data: data
  })
}
export function queryAccountList(data) {
  return request({
    url: "/ACustomerAccount/queryList",
    method: "GET",
    params: data
  })
}

export function queryOne() {
  return request({
    url: "/ACustomerAccount/queryOne",
    method: "get"
  })
}

// 新增按钮接口
export function insertUser(newUserData) {
  return request({
    url: "/ACustomerAccount/insert",
    method: "POST",
    data: newUserData
  })
}

// 编辑接口
export function updateLAccount(data) {
  return request({
    url: "/ACustomerAccount/update",
    method: "POST",
    data: data
  })
}


export function deleteAccount(id) {
  return request({
    url: "/ACustomerAccount/update",
    method: "POST",
    data: id
  })
}

export function bindCompany(id) {
  return request({
    url: "/ACustomerCompanyRelation/insertV2",
    method: "POST",
    data: id
  })
}
